package com.github.lyd.admin.provider.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.github.lyd.admin.provider.dao.AspNetUserLoginsDao;
import com.github.lyd.admin.provider.entity.AspNetUserLoginsEntity;
import com.github.lyd.admin.provider.service.AspNetUserLoginsService;
import com.github.lyd.admin.provider.utils.PageUtils;
import com.github.lyd.admin.provider.utils.Query;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("aspNetUserLoginsService")
public class AspNetUserLoginsServiceImpl extends ServiceImpl<AspNetUserLoginsDao, AspNetUserLoginsEntity> implements AspNetUserLoginsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<AspNetUserLoginsEntity> page = this.selectPage(
                new Query<AspNetUserLoginsEntity>(params).getPage(),
                new EntityWrapper<AspNetUserLoginsEntity>()
        );

        return new PageUtils(page);
    }

}
